#ifndef DIALOGSETDIRECTORY_H
#define DIALOGSETDIRECTORY_H

//(*Headers(DialogSetDirectory)
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/dirdlg.h>
#include <wx/dialog.h>
//*)

#include "Log.h"
#include "Typedef.h"
#include "GlobalParam.h"
#include "Database.h"

class DialogSetDirectory: public wxDialog
{
	public:

		DialogSetDirectory(wxWindow* parent,Database* Database,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
		virtual ~DialogSetDirectory();

		//(*Declarations(DialogSetDirectory)
		wxButton* Button1;
		wxButton* Button2;
		wxButton* Button3;
		wxDirDialog* DirDialog1;
		wxTextCtrl* TextCtrl1;
		//*)

    private:
        wxString SearchPath;
        Database* ThisDatabase;

	protected:

		//(*Identifiers(DialogSetDirectory)
		static const long ID_TEXTCTRL1;
		static const long ID_BUTTON1;
		static const long ID_BUTTON2;
		static const long ID_BUTTON3;
		//*)

	private:

		//(*Handlers(DialogSetDirectory)
		void OnTextCtrl1Text(wxCommandEvent& event);
		void OnSubmit(wxCommandEvent& event);
		void OnClose(wxCommandEvent& event);
		void OnChooseDirectory(wxCommandEvent& event);
		//*)

		DECLARE_EVENT_TABLE()
};

#endif
